package test
{
	import flash.display.Sprite;
	
	import level4.engines.MapEngine;
	import level4.gc.GC;
	import level4.tools.operators.MouseDragger;

	public class MapTest extends Sprite
	{
		private var url:String = "assets/map_grids/";
		
		public function MapTest()
		{
			
			var bg:Sprite = new Sprite();
				bg.graphics.beginFill(0xabcdef);
				bg.graphics.drawRect(0,0,40,30);
				bg.graphics.endFill();
			addChild(bg);

			var md:MouseDragger = new MouseDragger(bg,bg);
			
			
			var me:MapEngine = new MapEngine();
				me.setup(10,10,300,100,url);
				
				md.mouseMovingFun = function():void{
					me.startWork(bg);
				};
				md.mouseUpFun = function():void{
					GC.LC();
				}
		}
	}
}